//
//  JBWEmoticonModel.swift
//  新浪微博
//
//  Created by 季伯文 on 2017/7/11.
//  Copyright © 2017年 bowen. All rights reserved.
//

import UIKit

class JBWEmoticonModel: NSObject, NSCoding {
   


    //emoji(16进制编码)
    var code: String?
    //表情类型
    var type: String?{
        didSet{
            isEmoji = (type == "1")
        }
    }
    //表情图片描述
    var chs: String?
    //表情图片名
    var png: String?
    
    //是否是emoji
    var isEmoji: Bool = false
    
    //全路径
    var allPath: String?
    
    //归档
    func encode(with aCoder: NSCoder) {
        self.yy_modelEncode(with: aCoder)
        
    }
    //解档
    required init?(coder aDecoder: NSCoder) {
        super.init()
        self.yy_modelInit(with: aDecoder)
    }
    
    override init() {
        super.init()
    }
}
